Changing the IP address with a name [closed]
Posted
by
fede
on Server Fault
See other posts from Server Fault
or by fede
Published on 2012-09-05T20:20:54Z
Indexed on
2012/09/05
21:39 UTC
Read the original article
Hit count: 203
I have a web server (xampp) in a particular PC running on my LAN, and I added the following line in the 'hosts' file : 127.0.0.1 mysite.
Then, in another PC connected to the LAN, I'm trying to acces the previous web server by typing 'http://mysite/index.php' on the web browser, with no luck. But if I type the IP from the server computer (http://192.168.2.87/index.php) I am able to access the web site.
So, what should i configure so when i type 'http://mysite/index.php' I get the same result as http:// 192.168.2.87/index.php ??
Thanx!
© Server Fault or respective owner